package com.example.bilibili_miaosha.mapper;

import com.example.bilibili_miaosha.entity.Goods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bilibili_miaosha.vo.GoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
* 弓川hello mybatisplus
 * @author gongchuan
 * @since 2022-04-01
 */
@Mapper
@Repository
public interface GoodsMapper extends BaseMapper<Goods> {
    /** 
    * @Description: 获取商品列表 
    * @Param:  
    * @return:  
    * @Author: 弓川
    * @Date: 2022/4/1 
    **/ 
    List<GoodsVO> findGoodsVo();

    /**
    * @Description: 获取商品详情
    * @Param:
    * @return:
    * @Author: 弓川
    * @Date: 2022/4/1
    **/
    GoodsVO findGoodsVoByGoodsId(Long goodsId);
}
